package com.dayatang.hrm.compensation;

import java.io.Serializable;

import org.apache.commons.configuration.Configuration;
import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;

public class CompensationConstant implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 2510542841255930362L;

	public static String DATE_FORMAT_FULL_PATTERN;

	public static String DATE_FORMAT_PATTERN;

	public static String TIME_FORMAT_PATTERN;

	public static String RULE_DRL_ENCODING;

	static {
		try {
			Configuration config = new PropertiesConfiguration(
					"config/constant.properties");

			DATE_FORMAT_PATTERN = config.getString("date.format.pattern");
			DATE_FORMAT_FULL_PATTERN = config
					.getString("date.format.full.pattern");
			TIME_FORMAT_PATTERN = config.getString("time.format.pattern");
			RULE_DRL_ENCODING = config.getString("rule.drl.encoding");

		} catch (ConfigurationException e) {
			e.printStackTrace();
		}
	}
}
